<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/include.inc.jsp"%>
<style type="text/css">
	th,td{
		text-align:left;
	}
</style>
<script type="text/javascript">
<!--

//-->
</script>
<div class="bjui-pageContent">
<form method="post" action="${path}/admin/save" class="pageForm" data-toggle="validate" data-reload-navtab="true">
	<input type="hidden" name="sys_User.id" value="${user.id }"/>
	<div class="pageFormContent" data-layout-h="0">
		    <div class="suggestion">
                <span class="sugicon"><span class="strong colorgorning2">当前操作提示：</span><span class="colorgorningage">请在以下窗口中输入用户信息</span></span>
            </div>
	          <table class="table table-condensed table-hover" width="100%">
                <tbody>
                	 <tr>
                        <td width="40%">
                        	<label for="j_admin_update_loginName" class="control-label x105">账号</label>
                            <input type="text" class="required" name="sys_User.loginname" id="j_admin_update_loginName" data-rule="required;remote[${path}/admin/checkName?name=${user.loginname}]" value="${user.loginname }">
                        </td>
                        <td>
                        	<label for="j_admin_update_userName" class="control-label x85">姓名</label>
                            <input type="text" class="required"  data-rule="required" name="sys_User.username" id="j_admin_update_userName" value="${user.username }">
                        </td>
                    </tr>   
                     <tr>
                        <td>
                            <label class="control-label x105">性别</label>
                            <input type="radio" name="sys_User.sex" data-toggle="icheck" value="1" <c:if test="${user.sex == 1}"> checked="checked" </c:if> data-rule="checked" data-label="男&nbsp;&nbsp;">
                            <input type="radio" name="sys_User.sex" data-toggle="icheck" value="0" <c:if test="${user.sex == 0}"> checked="checked" </c:if> data-label="女">
                        </td>
                        <td>
                        	<label for="j_admin_update_mobile" class="control-label x85">手机</label>
                        	<input type="text" class="required" name="sys_User.mobile" data-rule="required;mobile" id="j_admin_update_mobile" value="${user.mobile }">
                        </td>
                    </tr>
                    <tr>
                        <td><label for="j_admin_update_phone" class="control-label x105">座机</label>
                            <input type="text" class="form-control"  name="sys_User.phone" id="j_admin_update_phone" value="${user.phone }">
                        </td>
                  
                        <td><label for="j_admin_update_email" class="control-label x85">邮箱</label>
                            <input type="text" class="form-control"  name="sys_User.email" data-rule="email" id="j_admin_update_email" value="${user.email }">
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2"><label for="j_admin_update_address" class="control-label x105">地址</label>
                        <input type="hidden" name="properties" value="1"/>
                        <input type="text" class="form-control"  name="sys_User.address" id="j_admin_update_address" value="${user.address }" size="50"></td>
                    </tr>            
      
                    <tr>
                        <td colspan="2"><label for="j_admin_update_note" class="control-label x105">备注信息</label>
                            <textarea class="form-control" maxlength="200" cols="50" rows="2" name="sys_User.note" id="j_admin_update_note">${user.note }</textarea>
                        </td>
                    </tr>
                </tbody>
             </table>
	</div>
	<div class="bjui-footBar" style="text-align: center;">
		<ul style="margin-left: 40%">
			<li style="float: left"><div class="buttonActive"><div class="buttonContent"><button  type="submit" class="btn-default" data-icon="edit" >确认保存</button></div></div></li>
			<li style="float: left"><div class="button"><div class="buttonContent"><button type="button" class="btn-close" data-icon="close" >取消保存</button></div></div></li>
		</ul>
	</div>
</form>
</div>
